export let recommend = {
    namespaced: true,
    state: {
        recommend_data: [],
        recommend_flag: false
    },
    actions: {
        getRecommendData(store, data = {}) {
            let url = "/history/content/" + data.count + "/" + data.page;
            axios.get(url).then(({
                data
            }) => {
                store.commit("setRecommendData", data.results)
            });
        }
    },
    mutations: {
        setRecommendData(state, data) {
            state.recommend_data = data;
            state.recommend_flag = true;
        }
    }
}